projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3dc11e
)
* lisp/emacs-lisp/comp.el (comp-sp): Better style gv-setter declaration.
author
Andrea Corallo
<akrl@sdf.org>
Mon, 14 Sep 2020 20:02:18 +0000
(22:02 +0200)
committer
Andrea Corallo
<akrl@sdf.org>
Mon, 14 Sep 2020 21:06:42 +0000
(23:06 +0200)
lisp/emacs-lisp/comp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/comp.el
b/lisp/emacs-lisp/comp.el
index 831af3793ece3dc6231ac1cf9682fb575b1d7a05..eceba777fa7cfc93b9c84e082a702733a3dc3fe5 100644
(file)
--- a/
lisp/emacs-lisp/comp.el
+++ b/
lisp/emacs-lisp/comp.el
@@
-810,9
+810,9
@@
Points to the next slot to be filled.")
(defsubst comp-sp ()
"Current stack pointer."
+ (declare (gv-setter (lambda (val)
+ `(setf (comp-limplify-sp comp-pass) ,val))))
(comp-limplify-sp comp-pass))
-(gv-define-setter comp-sp (value)
- `(setf (comp-limplify-sp comp-pass) ,value))
(defmacro comp-with-sp (sp &rest body)
"Execute BODY setting the stack pointer to SP.